<?php
/**
 * Created by PhpStorm.
 * User: littleboy
 * Date: 19.1.1
 * Time: 14:56
 */

namespace app\admin\logic;

/**
 * 生活号状态
 * Class LifeAccountStatus
 * @package app\admin\logic
 */
class LifeAccountStatus extends AdminBase
{
    /**
     * 获取生活号状态列表
     */
    public function lifeAccountStatusList($where = [], $field = true, $order = '', $paginate = false)
    {
        // 指定数据库表别名
        $this->modelLifeAccountStatus->alias('m');

        // 条件
        $where['m.id'] = ['<>', 0];

        // 查数据库
        $list = $this->modelLifeAccountStatus->getList($where, $field, $order, $paginate);

        return $list;
    }
}